package org.example.Day10;

public class ThreadTest2 {
    public static void main(String[] args){
        Runnable target = new MyRunnable();

        //把任务对象交给一个线程对象
        new Thread(target).start();
        for(int i=1;i<=5;i++){
            System.out.println("主线程main输出===>"+i);
        }
    }
}
